<template>
  <div class="demo-title">input/demo1</div>
  <div class="demo">
    <div class="demo-item">
      <label class="label">Title Text</label>
      <Input class="input" v-model="val1" :max-length="10" placeholder="Up to 10 characters" />
    </div>
    <div class="demo-item">
      <label class="label">Title Text</label>
      <Input class="input" v-model="val2" :max-length="10" :show-word-limit="true" placeholder="Up to 10 characters" />
    </div>
  </div>
</template>

<script lang="ts" setup>
  import { ref } from 'vue'
  import Input from '@sscd-mobile/input'
  const val1 = ref('')
  const val2 = ref('')
</script>

<style lang="less" scoped>
  .demo {
    padding: 8px 0;
    background: #fff;
    .demo-item {
      display: flex;
      align-items: center;
      padding-left: 12px;
      .input {
        flex: 1;
      }
    }
  }
</style>
